package com.example.decoratorpattern.concrete;

import com.example.decoratorpattern.service.Component;

/**
 * @author ash
 * @description
 * @create 2022/12/6  23:16:00
 * @className Person2
 * @verson 1.0.0
 */
public class Person2 implements Component {
    private String name;

    public Person2(String name) {
        this.name = name;
    }

    @Override
    public void operation() {
        System.out.println("粗糙装扮的" + this.name);
    }

}
